;

document.getElementById('datetime').textContent = jsonData.datetime;
document.getElementById('totalTests').textContent = jsonData.xts.total;
document.getElementById('failedTests').textContent = jsonData.xts.failureNum;

var failedCasesTableElement = document.getElementById('failedCasesTable');
var failedCases = jsonData.xts.failureTestCase;

for (var i = 0; i < failedCases.length; i++) {
var row = document.createElement('tr');

var nameCell = document.createElement('td');
nameCell.textContent = failedCases[i].name;
row.appendChild(nameCell);

var reasonCell = document.createElement('td');
reasonCell.textContent = failedCases[i].reason;
row.appendChild(reasonCell);

failedCasesTableElement.appendChild(row);
}

var previousMuslBenchmarkTableElement = document.getElementById('previousMuslBenchmarkTable');
var previousMuslBenchmarkData = jsonData.benchmark.previousMuslBenchmark;

for (var j = 0; j < previousMuslBenchmarkData.length; j++) {
var row = document.createElement('tr');

var benchmarkCell = document.createElement('td');
benchmarkCell.textContent = previousMuslBenchmarkData[j].Benchmark;
row.appendChild(benchmarkCell);

var timeCell = document.createElement('td');
timeCell.textContent = previousMuslBenchmarkData[j].Time;
row.appendChild(timeCell);

var cpuCell = document.createElement('td');
cpuCell.textContent = previousMuslBenchmarkData[j].Cpu;
row.appendChild(cpuCell);

var iterationsCell = document.createElement('td');
iterationsCell.textContent = previousMuslBenchmarkData[j].Iterations;
row.appendChild(iterationsCell);

var userCountersCell = document.createElement('td');
userCountersCell.textContent = previousMuslBenchmarkData[j].UserCounters;
row.appendChild(userCountersCell);

previousMuslBenchmarkTableElement.appendChild(row);
}

var currentMuslBenchmarkTableElement = document.getElementById('currentMuslBenchmarkTable');
var currentMuslBenchmarkData = jsonData.benchmark.muslBenchmark;

for (var k = 0; k < currentMuslBenchmarkData.length; k++) {
var row = document.createElement('tr');

var benchmarkCell = document.createElement('td');
benchmarkCell.textContent = currentMuslBenchmarkData[k].Benchmark;
row.appendChild(benchmarkCell);

var timeCell = document.createElement('td');
timeCell.textContent = currentMuslBenchmarkData[k].Time;
row.appendChild(timeCell);

var cpuCell = document.createElement('td');
cpuCell.textContent = currentMuslBenchmarkData[k].Cpu;
row.appendChild(cpuCell);

var iterationsCell = document.createElement('td');
iterationsCell.textContent = currentMuslBenchmarkData[k].Iterations;
row.appendChild(iterationsCell);

var userCountersCell = document.createElement('td');
userCountersCell.textContent = currentMuslBenchmarkData[k].UserCounters;
row.appendChild(userCountersCell);

currentMuslBenchmarkTableElement.appendChild(row);
}

var previousBionicBenchmarkTableElement = document.getElementById('previousBionicBenchmarkTable');
var previousBionicBenchmarkData = jsonData.benchmark.previousBionicBenchmark;

for (var l = 0; l < previousBionicBenchmarkData.length; l++) {
var row = document.createElement('tr');

var benchmarkCell = document.createElement('td');
benchmarkCell.textContent = previousBionicBenchmarkData[l].Benchmark;
row.appendChild(benchmarkCell);

var timeCell = document.createElement('td');
timeCell.textContent = previousBionicBenchmarkData[l].Time;
row.appendChild(timeCell);

var cpuCell = document.createElement('td');
cpuCell.textContent = previousBionicBenchmarkData[l].Cpu;
row.appendChild(cpuCell);

var iterationsCell = document.createElement('td');
iterationsCell.textContent = previousBionicBenchmarkData[l].Iterations;
row.appendChild(iterationsCell);

var userCountersCell = document.createElement('td');
userCountersCell.textContent = previousBionicBenchmarkData[l].UserCounters;
row.appendChild(userCountersCell);

previousBionicBenchmarkTableElement.appendChild(row);
}

var currentBionicBenchmarkTableElement = document.getElementById('currentBionicBenchmarkTable');
var currentBionicBenchmarkData = jsonData.benchmark.bionicBenchmark;

for (var m = 0; m < currentBionicBenchmarkData.length; m++) {
var row = document.createElement('tr');

var benchmarkCell = document.createElement('td');
benchmarkCell.textContent = currentBionicBenchmarkData[m].Benchmark;
row.appendChild(benchmarkCell);

var timeCell = document.createElement('td');
timeCell.textContent = currentBionicBenchmarkData[m].Time;
row.appendChild(timeCell);

var cpuCell = document.createElement('td');
cpuCell.textContent = currentBionicBenchmarkData[m].Cpu;
row.appendChild(cpuCell);

var iterationsCell = document.createElement('td');
iterationsCell.textContent = currentBionicBenchmarkData[m].Iterations;
row.appendChild(iterationsCell);

var userCountersCell = document.createElement('td');
userCountersCell.textContent = currentBionicBenchmarkData[m].UserCounters;
row.appendChild(userCountersCell);

currentBionicBenchmarkTableElement.appendChild(row);
}
</script>
</body>
</html>
